package cn.com.surker.weight.service.impl;

import cn.com.surker.util.StringUtils;
import cn.com.surker.weight.entity.WeightTare;
import cn.com.surker.weight.dao.WeightTareDao;
import cn.com.surker.weight.service.WeightTareService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import cn.com.surker.spring.RestResultDto;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

/**
* <p>
    * 车辆皮重表 服务实现类
    * </p>
*
* @author admin
* @since 2024-11-06
*/
@Service
public class WeightTareServiceImpl extends ServiceImpl<WeightTareDao, WeightTare> implements WeightTareService {

    @Resource
    private WeightTareDao weightTareDao;


    /**
     * 根据条件查询所有的数据
     * @return
     */
    public WeightTare findCarNo(String carNo) {
        if (StringUtils.isNull(carNo))
            return null;
        return weightTareDao.findByCarNo(carNo);
    }

}